import axios  from "../utils/request";
export const $list=async (params)=>{
    console.log(params)
    let {data}=await axios.post('api/GuestRecord/List',params);
    return data;
}
export const $getOne=async (params)=>{
    let {data}=await axios.get('api/GuestRecord/GetOne',{params});
    return data;
}
export const $add=async (params)=>{
    console.log(params)
    let {data}=await axios.post('api/GuestRecord/Add',params);
    return data;
}
export const $update=async (params)=>{
    console.log(params)
    let {data}=await axios.post('api/GuestRecord/Update',params);
    return data;
}
export const $del=async (params)=>{
    let {data}=await axios.post('api/GuestRecord/Delete',params);
    return data;
}
export const $checkout=async (params)=>{
    let {data}=await axios.post('api/GuestRecord/Checkout',params);
    return data;
}